﻿namespace MicroCloud.Identity.Dtos
{
    /// <summary>
    /// 用户简单DTO
    /// </summary>
    [MapFrom(typeof(User))]
    public class UserSimpleDto : IOutputDto
    {
        /// <summary>
        /// 获取或设置 用户编号
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 获取或设置 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 获取或设置 用户昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 获取或设置 电子邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 获取或设置 邮箱是否已确认
        /// </summary>
        public bool EmailConfirmed { get; set; }

        /// <summary>
        /// 获取或设置 手机号码
        /// </summary>
        public string PhoneNumber { get; set; }

        /// <summary>
        /// 获取或设置 手机是否已确认
        /// </summary>
        public bool PhoneConfirmed { get; set; }

        #region "获取或设置 是否锁定当前信息"
        /// <summary>
        /// 获取或设置 是否锁定当前信息
        /// </summary>
        public bool IsLocked { get; set; }
        #endregion

    }
}
